package com.hdg.boot.mapper;

import com.hdg.boot.bo.NewAddTableBo;
import com.hdg.boot.bo.NewUpdateTableBo;
import com.hdg.boot.bo.XirMdBo;
import com.hdg.boot.pojo.TableAndColumn;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface XirMdMapper {

    //void addXirMds(@Param(value = "list") List<XirMdBo> list);
    /**
     * 通过表名添加数据
     * @param list
     * @param tableName
     */
    void addXirMdsByName(@Param(value = "list") List<XirMdBo> list,@Param(value = "tableName")String tableName);

    /**
     * 根据表名获取数据
     * @param tableNameList
     * @return
     */
    List<XirMdBo> getData(@Param(value = "list")List<String> tableNameList,@Param(value = "tableName")String tableName);

    void updateHadTable(@Param(value = "list")List<String> list, @Param(value = "tableName")String tableName);

    void updateColumnStatus(@Param(value = "list")List<TableAndColumn> list,@Param(value = "tableName")String tableName);

    /**
     *
     * @param tableName
     * @return
     */
    List<NewAddTableBo> getNotUseTable(@Param(value = "tableName")String tableName);

    /**
     * 查看准生产比测试多的字段
     * @param tableName
     * @return
     */
    List<NewUpdateTableBo> getNotUseColumn(@Param(value = "tableName")String tableName);
    Integer isTable(@Param("tableName")  String tableName,@Param("englishName")  String englishName);
}
